import request from '@/utils/request'

const BASE_URL = '/depot/locationType'

export function getDepotLocationTypePageList(data) {
  return request({
    url: BASE_URL + '/getDepotLocationTypePageList',
    method: 'post',
    data
  })
}

export function getDepotLocationTypeInfo(data) {
  return request({
    url: BASE_URL + '/getDepotLocationTypeInfo',
    method: 'post',
    data
  })
}

export function addDepotLocationType(data) {
  return request({
    url: BASE_URL + '/addDepotLocationType',
    method: 'post',
    data
  })
}

export function modifyDepotLocationType(data) {
  return request({
    url: BASE_URL + '/modifyDepotLocationType',
    method: 'post',
    data
  })
}

export function deleteDepotLocationType(data) {
  return request({
    url: BASE_URL + '/deleteDepotLocationType',
    method: 'post',
    data
  })
}

export function getDepotLocationTypeList(params) {
  return request({
    url: BASE_URL + '/getDepotLocationTypeList',
    method: 'post',
    params
  })
}

export function getDepotLocationTypeListAllStatus(params) {
  return request({
    url: BASE_URL + '/getDepotLocationTypeListAllStatus',
    method: 'post',
    params
  })
}

export function setDepotLocationTypeStatusEnable(data) {
  return request({
    url: BASE_URL + '/setDepotLocationTypeStatusEnable',
    method: 'post',
    data
  })
}

export function setDepotLocationTypeStatusDisable(data) {
  return request({
    url: BASE_URL + '/setDepotLocationTypeStatusDisable',
    method: 'post',
    data
  })
}
